<?php

/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model app\models\LoginForm */
/* @var $model app\service\UrlService */

/* @var app\service\StaticService;*/



use app\models\LoginForm;
use \yii\helpers\Html;
use \yii\bootstrap\ActiveForm;
use \yii\web\View;
use app\service\UrlService;
use app\service\StaticService;


$this->title = 'Login';
$this->params['breadcrumbs'][] = $this->title;
?>
<html>
<head>
    <link href="/css/login.css" rel="stylesheet" type="text/css" media="all">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <!-- -->
    <script>var __links = document.querySelectorAll('a');function __linkClick(e) { parent.window.postMessage(this.href, '*');} ;for (var i = 0, l = __links.length; i < l; i++) {if ( __links[i].getAttribute('data-t') == '_blank' ) { __links[i].addEventListener('click', __linkClick, false);}}</script>
<!--    <script src="/jquery/jquery.min.js"></script>-->
<!--    <script>$(document).ready(function(c) {-->
<!--            $('.alert-close').on('click', function(c){-->
<!--                $('.message').fadeOut('slow', function(c){-->
<!--                    $('.message').remove();-->
<!--                });-->
<!--            });-->
<!--        });-->
<!--    </script>-->
</head>
<body>
<!-- contact-form -->
<div class="message warning">
    <div class="inset">
        <div class="login-head">
            <h1>登录</h1>
            <div style="color: #fff;"> <?= $message ? $message:'';?></div>
        </div>
        <?php $form = ActiveForm::begin(['method'=>'post','action'=>'']) ?>
            <li>
<!--                <input type="text" class="text" value="Username" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Username';}"><a href="#" class=" icon user"></a>-->
                <?= $form->field($model,'email')->textInput();?>
            </li>
            <div class="clear"> </div>
            <li>
<!--                <input type="password" value="Password" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Password';}"> <a href="#" class="icon lock"></a>-->
                <?= $form->field($model,'password')->passwordInput(); ?>
            </li>
            <div class="clear"> </div>
            <div class="submit">
                <input type="submit" value="登录">
                <h4><a href="<?=UrlService::BuildUrl('/user/register')?>">注册?</a></h4>
                <div class="clear">  </div>
            </div>

        <?php ActiveForm::end();?>
    </div>
</div>

<div class="clear"> </div>
<!--- footer --->
<div class="footer">
    <p>Copyright © <?=date('Y')?>.</p>
</div>


</body></html>
